﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EasyNet.Componets.Core.Http
{
    public interface IHttpContext
    {
        string GetRequestContent(object request);

        RequestInfo GetRequestInfo(object request);

        string GetResponseContent(object response);

        ResponseInfo GetResponseInfo(object response);

        string GetClientIp(object request);

        void SetRequestId(object request, string requestId);

        string GetRequestId(object request);

        RequestAuthenticationHeaderValue GetHeaderAuthorization(object request);
    }
}
